


class Person():
    def __init__(self,name,sex,age,country):
        self.name=name
        self.sex=sex
        self.age=age
        self.country=country
    def san(self):
        print("姓名:%s,性别:%s,年龄:%s,来自:%s"%(self.name,self.sex,self.age,self.country))

class student(Person):
    def __init__(self,name,sex,age,country,school,no):
        self.school=school
        self.no=no
        super().__init__(name,sex,age,country)
    def a(self):
        print("他叫%s,性别%s,今年%d,来自%s,在%s上学,学号:%d"%(self.name,self.sex,self.age,self.country,self.school,self.no))
L=student("魏泽轩","男",18,"中","1中",88)

L.a()


